package com.bwie.orders.dao;

import com.bwie.orders.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 
 * 
 * @author ShuangzhiZhao
 * @email 466505908@qq.com
 * @date 2022-02-22 10:59:44
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {


    int selectOrdersOnly(@Param("userId") Long userId, @Param("activityId") Long activityId);

    OrderEntity selectByUidAid(@Param("userId") Long userId, @Param("activityId") Long activityId);

    void updatelastPrice(@Param("oid") Long oid, @Param("lastPrice") BigDecimal lastPrice);

}
